<%@ include file="/jsp/include.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
<head>
<title>User Update</title>
	<link type="text/css" href="../css/ui-lightness/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
</head>
<body>
<form method="post">
<div>
	<div>
        <label ><fmt:message key="user.username"/></label>
        <input name="name" id="name" tabindex="1"  size="30" value="${user.name}"/>    
    </div>
	<div>
        <label for="password"><fmt:message key="user.password"/></label>
        <input type="password" name="password"  id="password" tabindex="2"  size="30" value="${user.password}"/>    
    </div>
 	<div>
        <label for="description"><fmt:message key="user.description"/></label>
        <textarea  name="description"  id="description" tabindex="3"  maxlength="200">
        ${user.description}
        </textarea>
    </div>
	<div>
        <label ><fmt:message key="user.phoneNo"/></label>
        <input name="phoneNo" id="phoneNo" tabindex="4"  size="20" value="${user.phoneNo}"/>    
    </div>
	<div>
        <label ><fmt:message key="user.email"/></label>
        <input name="email" id="email" tabindex="5"  size="50"  value="${user.email}">    
    </div>
	<div>
        <label ><fmt:message key="user.createTime"/></label>
        <label >${user.createTime}</label>    
    </div>
	<div>
        <label ><fmt:message key="user.updateTime"/></label>
        <label >${user.updateTime}</label>    
    </div>
    <div>
        <input type="button" id="button" value="Submit" />  
    </div>
<input type="hidden" id="userId" name="userId" value="${user.userId}">    
<input type="hidden" id="action"  name="action" value="${action}"> 
</div>
</form>
</body>
<script type="text/javascript" src="../js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="../js/jquery-ui-1.8.23.custom.min.js"></script>
<script type="text/javascript" src="../js/userUpdate.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		var userUpdate = new UserUpdate();
		userUpdate.init();
	});
</script>
</html>